﻿using IOP.SgrA.GLSL;
using IOP.SgrA.SilkNet.Vulkan.Scripted;
using IOP.SgrA.SilkNet.Vulkan;
using Silk.NET.Vulkan;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VkSample113
{
    [ShaderVersion("460")]
    [GLSLExtension("GL_ARB_separate_shader_objects : enable")]
    [GLSLExtension("GL_ARB_shading_language_420pack : enable")]
    public partial class CommonFrag : GLSLFrag
    {
        [SampledImage(0, 1, DescriptorSetTarget.RenderObject)]
        public sampler2D tex { get; set; }

        [ShaderInput(0)]
        public vec2 inTexCoor { get; set; }
        [FragOutput(0, false)]
        public vec4 outColor { get; set; }

        public override void main()
        {
            outColor = textureLod(tex, inTexCoor, 0.0f);
        }
    }
}
